home *** CD-ROM | disk | FTP | other *** search
/ PC Home 109 / PC Home 109.iso / data1.cab / Program_Files / be002.dxr / 00108.ls < prev    next >
Encoding:
Text File  |  2001-03-02  |  1.6 KB  |  66 lines

  1. on exitFrame
  2.   handcursor(6)
  3.   handcursor(7)
  4.   handcursor(8)
  5.   elvis()
  6.   finish1()
  7.   finish2()
  8.   puppetSprite(3, 1)
  9.   puppetSprite(4, 1)
  10.   puppetSprite(5, 1)
  11.   go(the frame)
  12.   if the locV of sprite 5 >= 300 then
  13.     set the visible of sprite 5 to 0
  14.   else
  15.     set the visible of sprite 5 to 1
  16.   end if
  17. end
  18.  
  19. on finish2
  20.   if (the visible of sprite 5 = 0) and (the locH of sprite 3 = 318) then
  21.     puppetSound(0)
  22.     go(the frame + 1)
  23.   end if
  24. end
  25.  
  26. on finish1
  27.   if the visible of sprite 5 = 0 then
  28.     if the locH of sprite 3 > 318 then
  29.       repeat while the locH of sprite 3 > 318
  30.         set the locH of sprite 3 to the locH of sprite 3 - 5
  31.         set the locH of sprite 4 to the locH of sprite 4 - 5
  32.         set the locH of sprite 5 to the locH of sprite 5 - 5
  33.         updateStage()
  34.       end repeat
  35.     else
  36.       if the locH of sprite 3 < 318 then
  37.         repeat while the locH of sprite 3 < 318
  38.           set the locH of sprite 3 to the locH of sprite 3 + 5
  39.           set the locH of sprite 4 to the locH of sprite 4 + 5
  40.           set the locH of sprite 5 to the locH of sprite 5 + 5
  41.           updateStage()
  42.         end repeat
  43.       end if
  44.     end if
  45.   end if
  46. end
  47.  
  48. on elvis
  49.   global elvis
  50.   if elvis = 0 then
  51.     if the locH of sprite 5 <= 116 then
  52.       repeat while the locV of sprite 5 < 300
  53.         set the locV of sprite 5 to the locV of sprite 5 + 5
  54.         updateStage()
  55.       end repeat
  56.     end if
  57.   else
  58.     if the locH of sprite 5 >= 522 then
  59.       repeat while the locV of sprite 5 < 300
  60.         set the locV of sprite 5 to the locV of sprite 5 + 5
  61.         updateStage()
  62.       end repeat
  63.     end if
  64.   end if
  65. end
  66.